boolean bloomFacet = false; // set to false
boolean setupBloomFacet=true;


//myThread mt;
float ang;
int curr=0;
PImage seqFrame[];
boolean loaded;
int imgCount=61;


void setupBloomFF() {
  seqFrame = new PImage[imgCount];
  setupBloomFacet=false;
}
void drawBloomFF() {
  frameRate(12);
  background(0);
  int xLoc=0;
  if (curr<imgCount) {
    seqFrame[curr] = loadImage("bloom4_"+nf(curr, 2)+".png");
    if (width>height) {
      xLoc=(width-height)/2;
    }
    image(seqFrame[curr], xLoc, 0, height, height);
    System.gc();
    curr++;
  } else {
    image(seqFrame[imgCount-1], xLoc, 0, width, width);
  }
  if (curr == imgCount) {
    bloomFacet=false;
    curr = 0;
  }
}

